Accessing Object Methods

objectName.methodName()

Creating and using an object method.

A method is actually a function definition stored as a property value.

An object method is a function definition stored as a property value.

If you access it without (), it will return the function definition: